*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f4f4f4;
}
.container{
  width: 100%;
  height: 592px;
  position: relative;
}
/* 轮播图边框阴影 */
.shades{
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  /* 元素不对时间做出反应 */
  pointer-events: none;
}
.shades .left{
  width: 160px;
  height: 100%;
  background: linear-gradient(to left,transparent,#16161a);
  position: absolute;
  left: 0;
  top: 0;
}
.shades .right{
  width: 160px;
  height: 100%;
  background: linear-gradient(to right,transparent,#16161a);
  position: absolute;
  right: 0;
  top: 0;
}
.shades .top{
  width: 100%;
  height: 90px;
  background: linear-gradient(to top,transparent,#16161a);
  position: absolute;
  left: 0;
  top: 0;
}
.shades .bottom{
  width: 100%;
  height: 90px;
  background: linear-gradient(to bottom,transparent,#16161a);
  position: absolute;
  left: 0;
  bottom: 0;
}
.imgs{
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.imgs img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
}
.imgs a{
  opacity: 0;
  transition: 0.2s;
}
.imgs a.active{
  opacity: 1;
}
.titles{
  width: 297px;
  height: 416px;
  position: absolute;
  top: 19%;
  right: 5%;
  /* 渐变的背景:从上到下，22和81之间是黑色 */
  background: linear-gradient(to bottom,transparent,#16161a 22%,#16161a 81%,transparent);
}
.titles a{
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  width: 100%;
  padding: 12px 20px;

}
.titles .title2{
  font-size: 12px;
  margin-top: 8px;
  font-weight: normal;
  display: none;
}
.titles a.active{
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  background: linear-gradient(to right,rgba(255,255,255,0.25) 20%,transparent 90%);
}
.titles a.active .title2{
  display: block;
}